<ui:fragment
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:p="http://primefaces.prime.com.tr/ui">

    <p:dialog header="#{bundle.Categoria}" draggable="true" widgetVar="categoria_list" width="600" height="610">
        <h:form id="categoria_listF" >
            <p:messages id="msgs"/>
            <p:dataTable id="categoriaList" var="categoria" value="#{categoriaController.listaCategorias}" paginator="true" rows="10" style="width:550px;text-align:center;" >
             <!--            selectionMode="single" selection="{instituicaoController.instituicao}"
                         onselectComplete="instituicao_edit.show();" update="instituicao_newF" -->
                <p:column width="40" >
                    <f:facet name="header">
                        <h:outputText value="#{bundle.ID}" />
                    </f:facet>
                    <h:outputText value="#{categoria.id}" />
                </p:column>
                <p:column width="400" >
                    <f:facet name="header">
                        <h:outputText value="#{bundle.Nome}" />
                    </f:facet>
                    <h:outputText value="#{categoria.nome}" />
                </p:column>
                <p:column width="400" >
                    <f:facet name="header">
                        <h:outputText value="#{bundle.Descricao}" />
                    </f:facet>
                    <h:outputText value="#{categoria.descricao}" />
                </p:column>
                <p:column>
             <p:commandButton update="categoria_editF" oncomplete="categoria_edit.show(); categoria_list.hide();"
                     image="ui-icon ui-icon-search">
                 <f:setPropertyActionListener value="#{categoria}"
                     target="#{categoriaController.categoria}" />
             </p:commandButton>

                </p:column>

            </p:dataTable>

        </h:form>
    </p:dialog>
</ui:fragment>